package cn.webestar.scms.user.entity;

import cn.webestar.scms.commons.entity.BasicDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_sys_resource", autoResultMap = true)
@Schema(name = "SysResource", description = "系统资源")
public class SysResource extends BasicDO<Long> {

    @TableField("pcode")
    @Schema(description = "父编码")
    private String pcode;

    @TableField("code")
    @Schema(description = "编码")
    private String code;

    @TableField("url")
    @Schema(description = "URL")
    private String url;

    @TableField("name")
    @Schema(description = "名称")
    private String name;

    @TableField("type")
    @Schema(description = "资源类型，1：目录、菜单，2：页面，3：接口")
    private Integer type;

    @TableField("remark")
    @Schema(description = "备注")
    private String remark;

}